package com.yic.module.qms.enums;

import com.yic.framework.common.exception.ErrorCode;

/**
 * QMS 错误码枚举类
 * <p>
 * QMS 系统，使用 1_021_000_000 段
 */
public interface ErrorCodeConstants {

    // ==========  质检项目模块 1_021_000_000 ==========
    ErrorCode INSPECT_ENTRY_NOT_EXISTS = new ErrorCode(1_021_000_000, "检验项不存在");
    ErrorCode INSPECT_ENTRY_NAME_EXISTS = new ErrorCode(1_021_000_001, "检验项名称已存在");
    ErrorCode INSPECT_ENTRY_CODE_EXISTS = new ErrorCode(1_021_000_002, "检验项代码已存在");

    // ==========  质检方案模块 1_021_001_000 ==========
    ErrorCode INSPECT_SCHEME_NOT_EXISTS = new ErrorCode(1_021_001_000, "检验方案不存在");
    ErrorCode INSPECT_SCHEME_CODE_EXISTS = new ErrorCode(1_021_001_001, "检验方案代码已存在");
    ErrorCode INSPECT_SCHEME_SAMPLE_NOT_EMPTY = new ErrorCode(1_021_001_003, "抽样比例不能为空");
    ErrorCode INSPECT_SCHEME_SAMPLE_NOT_RANGE = new ErrorCode(1_021_001_004, "抽样比例必须在0~100之间");

    // ==========  质检方案、检验项绑定模块 1_021_002_000 ==========
    ErrorCode INSPECT_SCHEME_ENTRY_NOT_EXISTS = new ErrorCode(1_021_002_000, "检验项绑定关系不存在");
    ErrorCode INSPECT_SCHEME_ENTRY_BIND_EXISTS = new ErrorCode(1_021_002_001, "检验项绑定关系已存在");

    // ==========  质检方案、产品绑定模块 1_021_003_000 ==========
    ErrorCode INSPECT_SCHEME_ITEM_NOT_EXISTS = new ErrorCode(1_021_003_000, "产品绑定关系不存在");
    ErrorCode INSPECT_SCHEME_ITEM_BIND_EXISTS = new ErrorCode(1_021_003_001, "产品绑定关系已存在");

    // ==========  质检方案、工艺绑定模块 1_021_004_000 ==========
    ErrorCode INSPECT_SCHEME_PROCESS_NOT_EXISTS = new ErrorCode(1_021_004_000, "工艺绑定关系不存在");
    ErrorCode INSPECT_SCHEME_PROCESS_BIND_EXISTS = new ErrorCode(1_021_004_001, "工艺绑定关系已存在");

    // ==========  检验单单身模块 1_021_005_000 ==========
    ErrorCode INSPECT_INFO_NOT_EXISTS = new ErrorCode(1_021_005_000, "质量检验单单身不存在");

    // ==========  过程检验单模块 1_021_006_000 ==========
    ErrorCode INSPECT_PROCESS_NOT_EXISTS = new ErrorCode(1_021_006_000, "过程检验单不存在");







}

